#include<iostream> 
#include<string>
#include<functional>
#include<vector>
using namespace std;

void print(const string &str,int num)
{
    cout<< str<<num<<endl;
}

int main()
{
   // printf("hello");
    auto func = std::bind(print,"hhhhhhh\n",std::placeholders::_1);//这里要求print函数传参const
   using Task=std::function<void()>;
   vector<Task> arry;
   arry.push_back(bind(print,"lizhenhuadashab\n",10));
   arry.push_back(bind(print,"lidashab\n",30));
   arry.push_back(bind(print,"dashab\n",100));
    for(auto&e:arry)
    {
        e();
    }
    return 0;
}